package cn.com.bsoft.mobile.entity

import cn.net.xyan.blossom.kotlin.NoArg
import java.util.*
import javax.persistence.*

@NoArg
@Entity
@Table(name = "mobile_suite")
class MobileAppSuite(@Id val suiteID:String, val title:String){

    @OneToMany(mappedBy = "suite")
    var apps:List<MobileApp> = LinkedList()
}

@NoArg
@Entity
@Table(name = "mobile_app")
class MobileApp(@Id var nativeID:String,var type:String){
    var title:String? = null

    @ManyToOne
    @JoinColumn(name = "suite")
    var suite:MobileAppSuite? = null


    var teamID:String? = null

    var pushHost:String? = null

    var pushKeyID:String? = null

    @Column(length = 4000)
    var pushSecret:String? = null
}